import React from 'react';
import {inject, observer} from 'mobx-react';
import { Button } from 'antd';
import { WeaDialog  } from 'ecCom';
import MyWorkPlan from './MyWorkPlan'
 
class Test extends React.Component {
	constructor(props) {
    	super(props);
	    this.state={
            singlePageVisible:false
	    }
	  }
	componentDidMount() {
		 this.setState({type:'init'});
	 }
    render() {
    	return(
			<div className="" >
				<Button ecId={`${this && this.props && this.props.ecId || ''}_Button@w0epy3`} type="primary" onClick={()=>{this.setState({singlePageVisible:true})}}>Test</Button> 
                <MyWorkPlan ecId={`${this && this.props && this.props.ecId || ''}_MyWorkPlan@t29ctq`} visible={this.state.singlePageVisible} isDialog={true} height={700} callback={()=>{this.setState({singlePageVisible: false})}} location={{}}/>
    		</div>
    	)
    }
}

export default Test
